package com.spring.shops.admin.controller.product;

import com.spring.shops.model.result.ServerResponseEntityVoid;
import com.spring.shops.model.vo.ProdCategoryVO;
import com.spring.shops.service.ProdCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//产品管理->产品分类模块
@RestController
@RequestMapping("/prod/category")
public class ProdCategory {
    @Autowired
    private ProdCategoryService service;

    /**
     * 列出所有的分类
     * @return
     */
   // @GetMapping("/listCategory")
    public ServerResponseEntityVoid<List<ProdCategoryVO>> listCategory(){
       return service.listCategory();
    }
}
